import Mock from 'mockjs'

let getApi = {
  // 虚拟用户信息-查询​
  queryVirtualUser: {
    "success": true,
    "message": "操作成功！",
    "code": 200,
    "data": [{
      "virtualUserId": "vt101",
      "userId": "00faa093bb0711ecaf02d8bbc18b00a8",
      "wxNickName": "小林子",
      "wxOpenid": "sdfkdosjflksdjf54654646",
      "wxPhoto": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
      "createAt": null,
      "isVip": 1,
      "isRegistered": null,
      "disable": null,
      "id": null,
      "groupId": "vt001",
      "targetPrimaryKey": "003",
      "inGroupNickname": "小明",
      "serialNumberList": null,
      "roleId": "vt104",
      "followGroup": null,
      "username": "af02d8bbc18b00a8"
    }, ],
    "timestamp": 1649916686614
  },
  // 查询用户下创建的所有投票主题
  queryAllTitle: {
    code: 200,
    data: [{
        activityId: "0001", //投票ID
        title: "投票1", //投票标题
        isShield: 0, //是否匿名投票 0:不是,1:是
        voteNumber: 10, //投票人数
        type: 1, //投票类型
      },
      {
        activityId: "0002", //投票ID
        title: "投票2", //投票标题
        isShield: 1, //是否匿名投票 0:不是,1:是
        voteNumber: 9, //投票人数
        type: 2, //投票类型
      },
    ]
  },
  // 投票明细
  voteSubsidiary: {
    code: 200,
    data: {
      title: "投票1", //投票标题
      voteNumber: 15, //投票人数
      haveToVote: [{
          activityOptionId: "001", //选项id
          optionName: "选项1", //选项名
          voteNumber: 10, //投票人数
          isVote: true, // 是否投票
          votingRecordDTOList: [{
            wxNickName: "天宇",
            wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
            inGroupNickname: "李明",
            targetPrimaryKey: "XH0001",
            relation: "爸爸",
            roleId: "0",
          }]
        },
        {
          activityOptionId: "002", //选项id
          optionName: "选项2", //选项名
          voteNumber: 5, //投票人数
          isVote: false, // 是否投票
          votingRecordDTOList: [{
            wxNickName: "天宇",
            wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
            inGroupNickname: "李明",
            targetPrimaryKey: "XH0001",
            relation: "爸爸",
            roleId: "0",
          }]
        }
      ],
      didNotVote: [
        // 未投票
        {
          wxNickName: "天宇",
          wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
          inGroupNickname: "李明",
          targetPrimaryKey: "XH0001",
          relation: "爸爸",
          roleId: "0",
        },
        {
          wxNickName: "天宇",
          wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
          inGroupNickname: "李明",
          targetPrimaryKey: "XH0001",
          relation: "爸爸",
          roleId: "0",
        },
      ],
    }
  },
  // 参与投票
  joinVote: {
    code: 200,
    data: [{
        activityId: "0001", //投票ID
        title: "投票1", //投票标题
        isShield: 0, //是否匿名投票 0:不是,1:是
        voteNumber: 10, //投票人数
        type: 1, //投票类型
      },
      {
        activityId: "0002", //投票ID
        title: "投票2", //投票标题
        isShield: 1, //是否匿名投票 0:不是,1:是
        voteNumber: 9, //投票人数
        type: 2, //投票类型
      },
    ]
  },
  // 用户所在的班级-查询
  queryUserGroups: {
    code: 200,
    data: [{
      groupId: "0001", // 班级id
      groupName: "01班级", // 班级名
      Member: 30, // 成员数量
    }]
  },
  // 班级下所有的用户-查询
  queryGroupAllUser: {
    code: 200,
    data: {
      groupId: "0001", // 班级id
      groupName: "01班级", // 班级名
      member: 30, // 成员数量
      memberList: [{
          wxNickName: "天宇",
          wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
          inGroupNickname: "李明",
          targetPrimaryKey: "XH0001",
          roleId: "vt001",
          disable: false, // 禁用
          isVip: true, // 是否是管理员
        },
        {
          wxNickName: "天宇",
          wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
          inGroupNickname: "李明",
          targetPrimaryKey: "XH0001",
          roleId: "vt002",
          disable: true, // 禁用
          isVip: false, // 是否是管理员
        },
        {
          wxNickName: "天宇",
          wxPhoto: "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJA0W6fR79MMNGHrjPXyBNchQ4JzeHiagudDlnpTTB77RjKyIYxibnkZnHShyvsGuRLZgLjibBliapefg/132",
          inGroupNickname: "李明",
          targetPrimaryKey: "XH0001",
          roleId: "vt003",
          disable: false, // 禁用
          isVip: false, // 是否是管理员
        },
      ]
    }
  },
  // 修改班级名称
  updateGroup: {
    code: 200,
    data: {}
  },
  // 普通用户投票状态详情
  voteStateDetails: {
    code: 200,
    data: [{
        activityId: "0001", //投票ID
        title: "投票1", //投票标题
        isShield: 0, //是否匿名投票 0:不是,1:是
        voteNumber: 10, //投票人数
        type: 1, //投票类型
      },
      {
        activityId: "0002", //投票ID
        title: "投票2", //投票标题
        isShield: 1, //是否匿名投票 0:不是,1:是
        voteNumber: 9, //投票人数
        type: 2, //投票类型
      },
    ]
  },
  // 管理员 我的页面列表 数量
  myListTotal: {
    code: 200,
    data: {
      myVote: [{
          id: 1,
          title: "创建的投票",
          number: 2,
        },
        {
          id: 2,
          title: "参与的投票",
          number: 0,
        },
      ],
      classManagement: [{
          id: 3,
          title: "我的班级",
          number: 3,
        },
        {
          id: 4,
          title: "常见问题",
          number: 0,
        },
        {
          id: 5,
          title: "客服帮助",
          number: 0,
        },
      ]
    }
  },
  // 用户角色字典-查询
  queryUserRoleList: {
    code: 200,
    data: [{
        roleId: "vt103",
        roleName: "爸爸",
      },
      {
        roleId: "vt104",
        roleName: "妈妈",
      },
    ]
  },
  // 群组字典 - 查询
  queryUserGroup: {
    code: 200,
    data: [{
        groupId: "vt002",
        groupName: "02班级",
      },
      {
        groupId: "vt001",
        groupName: "01班级",
      },
    ]
  },
  // 微信用户信息- 用户昵称头像 - 添加
  updateWxUser: {
    "success": true,
    "message": "操作成功！",
    "code": 200,
    "data": [],
    "timestamp": 1650002674767
  },
  // 投票群组成员-查询
  queryVotingGroupUser: {
    "success": true,
    "message": "操作成功！",
    "code": 200,
    "data": [{
      virtualUserId: "vt001",
      inGroupNickname: "小明",
      targetPrimaryKey: "xh001",
      roleId: "vt003",
      isVote: 0,
    }, {
      virtualUserId: "vt003",
      inGroupNickname: "小李",
      targetPrimaryKey: "xh003",
      roleId: "vt003",
      isVote: 1,
    }, {
      virtualUserId: "vt002",
      inGroupNickname: "小红",
      targetPrimaryKey: "xh002",
      roleId: "vt003",
      isVote: 1,
    }],
    "timestamp": 1650002674767
  }
}

export default getApi;